home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
cinematte_load.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
1KB
|
44 lines
/*
* CineMatte.ifx.pre
* Written by Gerald Bonnstetter
*
* AutoFX script to run the CineMatte hook.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_CineMatte_'
lpath = GETCLIP(base||'Path')
lfile = GETCLIP(base||'File')
colors = GETCLIP(base||'Colors')
output = GETCLIP(base||'Output')
IF colors = '' THEN colors = 0
IF output = '' THEN output = 0
IF lpath = "" THEN lpath = "Storage/CineMatte"
Gadget.1 = 'STRING 170 10 240 14 "CineMatte Options File:"' lfile
Gadget.2 = 'FILEREQ 412 10 20 14 "CineMatte Options File:" 'lpath ' #?' lfile 'AT=1'
Gadget.3 = 'CYCLE 170 26 170 14 "Screen Color:"' colors '"Blue/Green/Red/Cyan/Magenta/Yellow/Auto Detect/Detect Any Color"'
Gadget.4 = 'CYCLE 170 42 170 14 "Output:"' output '"Matte & Keyed FG/Composite Only/Matte & Composite/Matte Only/Keyed FG Only"'
Gadget.5 = 'END'
NewComplexRequest '"CineMatte"' Gadget 450 85
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'Path' , result.2.path)
CALL SETCLIP(base||'File' , result.2.file)
CALL SETCLIP(base||'Colors', result.3)
CALL SETCLIP(base||'Output', result.4)
EXIT